cmake_minimum_required(VERSION 3.10)

# 设置项目名称
project(TestSevenBox VERSION 1.0)

# 添加include目录
include_directories(
    ${PROJECT_SOURCE_DIR}/../include
)

# 添加库
add_library(SevenBoxLib 
    ${PROJECT_SOURCE_DIR}/../src/base/circbuf.c
    ${PROJECT_SOURCE_DIR}/../src/base/crc32.c
    ${PROJECT_SOURCE_DIR}/../src/base/list.c
    ${PROJECT_SOURCE_DIR}/../src/base/stack.c
    ${PROJECT_SOURCE_DIR}/../src/fakeos/process.c
)

# 添加可执行文件
add_executable(TestSevenBox main.c)

# 链接库到可执行文件
target_link_libraries(TestSevenBox PUBLIC SevenBoxLib)
